package com.jk.cart.mapper;

import com.jk.cart.pojo.Cart;
import org.springframework.data.jpa.repository.JpaRepository;

public interface CartRepo extends JpaRepository<Cart,String> {

    Cart getCartByCustomerGoodsId(String customerGoodsId); //从购物车id拿购物车

    Cart getCartByUserId(String userId); //从用户id拿购物车

}
